package com.example.my_self_view.list

/**
 * @dsc     简介
 * @Author  LiWeiZhong
 * @Date    2025/1/20 10:43
 * @Version 1.0
 */
data class Province(
    val name: String,
    val namePinYin: String
): Item() {
    init {
        type = Type.CONTENT
    }

    override fun equals(other: Any?): Boolean {
        if (this === other) return true
        if (other !is Province) return false
        if (!super.equals(other)) return false

        if (name != other.name) return false
        if (namePinYin != other.namePinYin) return false

        return true
    }

    override fun hashCode(): Int {
        var result = super.hashCode()
        result = 31 * result + name.hashCode()
        result = 31 * result + namePinYin.hashCode()
        return result
    }


}